package com.cskaoyan.search.remote;

import com.cskaoyan.mall.dto.AllItemServiceResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient("duolai-shopping")
public interface ProductApiClient {
    /*
     该方法是商品服务暴露给搜索服务，使搜索服务能够获取到所有商品数据
 */
    @GetMapping("/rpc/items")
    AllItemServiceResponse getAllProductItem();
}
